//
//  BaseModel.m
//  SpiritWalk
//
//  Created by 王鑫 on 16/3/10.
//  Copyright © 2016年 王鑫. All rights reserved.
//

#import "BaseModel.h"

@implementation BaseModel
+(NSMutableArray*)baseModelByArr:(NSArray*)dataArr{
    NSMutableArray * modelArr=[NSMutableArray array];
    for (NSDictionary * dic in dataArr) {
        id model=[[[self class] alloc] init];
        [model setValuesForKeysWithDictionary:dic];
        [modelArr addObject:model];
    }
    return modelArr;
}
//纠错方法
-(void)setValue:(id)value forUndefinedKey:(NSString *)key{
    
}
@end
